﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
    CodeFile="DHCPMaintain.aspx.vb" Inherits="WebForm_Mail_LoginDataMaintain" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register src="Controls/IPData.ascx" tagname="IPData" tagprefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:HiddenField ID="hiUID" runat="server" />
            <asp:HiddenField ID="hiDBName" runat="server" />
           
            <asp:ObjectDataSource ID="dbTemp" runat="server" SelectMethod="GetTempData" 
                TypeName="TempData"></asp:ObjectDataSource>
           
            <table border="1" width="1000px">
                <tr>
                    <td style="text-align: center" colspan ="6">
                        <asp:Label ID="lblTitle" runat="server" Text="DHCP Lease資料匯入維護作業" Font-Bold="True"
                            Font-Size="24px"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                       電腦名稱:</td>
                         <td>
                             <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                       </td>
                         <td style="text-align: right">
                         IP:
                       </td>
                         <td>
                             <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                       </td>
                        <td style="text-align: right">
                       MAC:</td>
                         <td>
                             <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                       </td>
                </tr>
                <tr>
                    <td style="text-align: center" colspan ="6">
                        <asp:Button ID="Button2" runat="server" Text="查詢" />
                        <asp:Button ID="Button1" runat="server" Text="匯入資料" />
                         <asp:Button ID="Button3" runat="server" Text="新增" />
                    </td>
                </tr>
                <tr style="vertical-align: text-top">
                    <td colspan ="6">
                       
                        <TServerControl:TGridView ID="gvSendMail" runat="server" 
                            AllowHoverEffect="False" AllowHoverSelect="False" AllowPaging="True" 
                            AutoGenerateColumns="False" DataSourceID="dbTemp" ShowFooterWhenEmpty="False" 
                            ShowHeaderWhenEmpty="True" SkinID="pager" TotalRowCount="0" Width="900px">
                            <Columns>
                                 <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton3" runat="server">編輯</asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton2" runat="server">刪除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="MAC" DataField ="AAA"/>
                                <asp:BoundField HeaderText="Lease Expiration" />
                                <asp:BoundField HeaderText="電腦名稱" />
                                <asp:BoundField HeaderText="IP" />
                                <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">位置</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                              
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:Label ID="lblEmpty" runat="server" ForeColor="Red" 
                                    meta:resourcekey="lblEmpty"></asp:Label>
                            </EmptyDataTemplate>
                        </TServerControl:TGridView>
                       
                    </td>
                </tr>
                <tr style="vertical-align: text-top">
                    <td colspan="6">
                        <uc1:IPData ID="IPData1" runat="server" Visible="False" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
